﻿html {
    font-size: 10px;
    height: 100%;
}

body {
    height: 100%;
    overflow: hidden;
}

body div {
    font-size: 1.3rem;
}

#menu-bar>li>a {
    font-size: 1.5rem;
}

/* nav */

.navbar {
    padding: 0;
}

.container-fluid {
    padding: 0;
    height: calc(100% - 72px);
    /* max-height: 2000px; */
    margin-top: 72px;
    position: relative;
    overflow: hidden;
}

.navbar::after,
.container-fluid::after {
    content: '';
    clear: both;
}

.container-fluid.hide {
    height: 0;
    opacity: 0;
}

.navbar-header {
    position: fixed;
    top: 0px;
    height: 72px;
    width: 100%;
    background: #2d3c4d;
    ;
}

.navbar-header-after {
    height: 72px;
    width: 100%;
}

#navbar-brand {
    height: 72px;
    width: 800px;
    line-height: 72px;
    margin-left: 10px;
}

.navbar-brand {
    background-image: url(../images/logo.png);
    height: 72px;
    width: 72px;
    float: left;
}

.navbar-text {
    float: left;
    height: 72px;
    color: #9d9d9d;
}

.navbar-text h4 {
    padding: 10px 0;
    margin: 0px;
    font-size: 1.8rem;
    color: #ffffff;
}

.navbar-text h6 {
    font-size: 12px;
}

.sidebar {
    display: block;
    padding-top: 20px;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
    overflow-y: auto;
    float: left;
    /* Scrollable contents if viewport is shorter than content. */
    background-color: #f5f5f5;
    border-right: 1px solid #eee;
}

.sidebar .style-name {
    padding-left: 5%;
}

/*Sidebar search*/

.container-fluid .form-inline {
    margin-top: 10px;
    position: relative;
}

#sidebar-search {
    width: 90% !important;
    z-index: 999;
    border-radius: 0;
    font-size: 1.5rem;
    margin-left: 5%;
    height: 30px;
}

.sidebar hr {
    height: 0.2px;
    background-color: #e4e2e2;
    margin-bottom: 0;
    margin-top: 10px;
}

.container-fluid form i {
    position: absolute;
    right: 10%;
    top: 9px;
}

/* Sidebar navigation */

.nav-sidebar a {
    color: #2d3c4d;
}

.nav-sidebar>li>a {
    padding-left: 0;
}

.nav-sidebar li {
    border-bottom: 1px solid #e5e5e5;
}

.nav-sidebar>li>a i {
    width: 20px;
}

.nav-sidebar>li>a {
    font-weight: bold;
    font-size: large;
}

.nav>.active>a,
.nav>.active>a:hover,
.nav>.active>a:focus {
    background-color: #E4E2E2;
}

.arrow:before {
    font-family: FontAwesome;
    content: "\f078";
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    vertical-align: middle;
    float: right;
}

.sub-arrow:before {
    font-family: FontAwesome;
    content: "\f105";
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    vertical-align: middle;
    float: left;
}

/*
 * Main content
 */

.main {
    padding: 20px;
    height: 100%;
    float: right;
}

#loadingImage {
    position: absolute;
    left: 50%;
    bottom: 50%;
    z-index: 9000;
    display: none;
}

.title-content {
    padding: 10px 20px 10px;
}

/*
 * Override bootstrap and awesome
 */

.fa {
    cursor: pointer;
}

.list-group {
    margin-top: 20px;
    border: 0;
}

.list-group-item {
    background-color: #f5f5f5;
    padding: 15px 10px;
    color: #333333;
    font-size: 1.6rem;
    font-weight: 600;
    border-right: none;
    border: 0;
}


/* .active{
    border-right: none;
    background-color: #e4e2e2;!important
} */

.list-group-item.active {
    background-color: #e4e2e2;
    border: 0;
    color: #2d3c4d;
}

@media(min-width:758px) {
    .header-btn {
        float: right;
        margin-top: 20px;
        margin-right: 20px;
    }
    #about,
    #trynow,
    #purchase {
        width: 100px;
        padding-top: 5px;
        padding-bottom: 5px;
        border-radius: 0;
        color: #ffffff;
    }
    #trynow {
        border: 1px solid #337ab7;
    }
    #about,
    #purchase {
        border: 1px solid #d3b6b6de;
    }
    .header-btn a:hover {
        opacity: 0.8;
    }
    #trynow {
        background-color: #337ab7;
    }
    .header-btn li {
        padding-left: 5px;
    }
}

@media (max-width: 757px) {
    .main {
        width: 100%;
        float: right;
    }
    .header-btn {
        margin: 0;
    }
    #navbar-brand {
        margin-left: 0;
        height: 72px;
    }
    .navbar-brand {
        background-image: url(../images/logo.png);
        height: 72px;
        width: 72px;
        background-size: 50px;
        background-repeat: no-repeat;
        background-position: 6px 6px;
        line-height: 72px;
        padding: 0;
    }
    #navbar {
        background-color: #2d3c4d;
        border-top: 1px solid #ffffff;
    }
    #navbar a {
        color: #ffffff;
        text-align: left;
    }
    .sidebar {
        position: relative;
        top: 0px;
        width: 100%;
    }
    .navbar-text {
        /*display: none;*/
        display: inline-block;
    }
    .navbar-text h4 {
        font-size: 1.4rem;
    }
    .navbar-text h6 {
        font-size: 1.0rem;
    }
    .navbar-toggle {
        margin-top: 18px;
    }
    .container-fluid>.navbar-header {
        margin-left: 0;
    }
    .sidebar {
        padding-top: 0;
    }
}

/*
child pages
*/
#back{
    margin-left: 10px;
}
#back img{
    margin-top: -10px;
}

#back span{
    font-size: 24px;
    font-weight: 600
}
#childList {
    padding-left: 0;
    height: calc(100% - 50px);
    overflow-y: auto;
    margin-right: -20px;
}

#childList li {
    list-style: none;
    padding: 20px;
    border-bottom: 1px solid #ccc;
    width: fit-content;
}

#childList li:first-child {
    border-top: 1px solid #ccc;
}

.child-content {
    display: flex
}

.child-content p {
    width: 600px;
    margin: 10px 0 30px 0;
}

.child-content img {
    margin-left: 50px;
    padding: 10px;
    border: 1px solid #2d3c4d
}

.pre-numbering li {
    margin: 0;
}

.nav>li>a>img {
    width: 18px;
    height: 18px;
}

#grandList a:first-child{
    margin-top:-10px;
}

.sidebar{
    min-height:100%;
    background-color:sidebar;
}

/* suorce-code-panel */

.source-code-panel {
    padding: 0;
    height: calc(100% - 72px);
    border-top: 1px solid #2d3c4d;
}

.source-code-header {
    height: 7%;
}

.source-code-sidebar,
.source-code-content {
    height: 93%;
}

.source-code-sidebar {
    float: left;
    padding: 0;
}

.source-code-content {
    float: left;
 
}